package com.singzi.hospappo.msm.service.impl;

import com.singzi.hospappo.msm.service.MsmService;
import com.singzi.hospappo.vo.msm.MsmVo;
import org.springframework.util.StringUtils;

public class MsmServiceImpl implements MsmService {
    @Override
    public boolean send(String phone, String code) {
        return false;
    }

    //Mq发送短信
    @Override
    public boolean send(MsmVo msmVo) {
        if(!StringUtils.isEmpty(msmVo.getPhone())){
            String code = (String) msmVo.getParam().get("code");
            return send(msmVo.getPhone(), code);
        }
        return false;
    }
}
